<html>
 <head></head>
 <body>
    <meta charset="UTF-8" /> 
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" /> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> 
    <link href="/resource/ui-framework/easyui-1.5.2/themes/metro/easyui-c5a176a3d4.css" rel="stylesheet" />
    <link href="/resource/ui-framework/easyui-1.5.2/themes/icon-77a4ded0c8.css" rel="stylesheet" />
    <link href="/resource/ui-framework/bootstrap/3.0.3/css/bootstrap-a067b6d831.min.css" rel="stylesheet" />
    <link href="/resource/ui-framework/bootstrap-daterangepicker/css/daterangepicker-886dba62c4.css" rel="stylesheet" />
    <link href="/resource/ui-framework/font-awesome/css/font-awesome-a81d284b37.css" rel="stylesheet" />
    <link href="/resource/ui-framework/admin-lte/css/AdminLET-7d58b99a7e.css" rel="stylesheet" />
    <link href="/static/css/base-dc47892812.css" rel="stylesheet" />
    <link href="/resource/ui-framework/jason/searchbox/css/searchbox-398327fb84.css" rel="stylesheet" />
    <link href="/resource/ui-framework/jason/pager/css/pager-f077f5e880.css" rel="stylesheet" />
    <link href="/resource/ui-framework/jason/status/css/status-5f59ab3856.css" rel="stylesheet" />
    <link href="/resource/ui-framework/jason/selector/css/selector-23060c280e.css" rel="stylesheet" />
    <link href="/resource/ui-framework/jason/button/css/button-5ef10c798a.css" rel="stylesheet" />
    <link href="/resource/ui-framework/jason/orderarrow/css/orderarrow-dcf8eba7d1.css" rel="stylesheet" />
    <link href="/static/css/table-0e491bc98f.css" rel="stylesheet" />
    <link href="/static/css/easyui-ext-372f902530.css" rel="stylesheet" />
  <div class="panel window panel-htop" >
   <div title="" class="panel-body panel-body-noborder window-body" id="dlgSelectStaff" style="width: 988px; height: 765px;">
    <div class="container mt10" style="width:100%; margin-bottom:15px;"> 
     <div class="row">
      <div class="col-sm-9"> 
       <div class="container" style="width:100%;"> 
        <div class="row"> 
         <div class="mt20 fl" style="width:100%;margin-bottom:15px;"> 
          <ul> 
           <li class="fl h31 ml10">姓名：</li> 
           <li class="ml10 fl"><span class="textbox" style="width: 128px;"><input class="textbox-text validatebox-text textbox-prompt" autocomplete="off" tabindex="" placeholder="" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 126px;" type="text" name="name" value="<?php if(isset($_GET['name'])){ echo $_GET['name']; } ?>" /></span> </li> 
           <li class="fl h31 ml10">账号：</li> 
           <li class="ml10 fl"><span class="textbox" style="width: 128px;"><input class="textbox-text validatebox-text textbox-prompt" autocomplete="off" tabindex="" placeholder="" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 126px;" type="text" name="username" value="<?php if(isset($_GET['username'])){ echo $_GET['username']; } ?>" /></span> </li> 
           <li class="ml10 fl"> <a class="btn-action" onclick="btnSearchDiv()">查询</a> </li> 
          </ul> 
         </div> 
        </div> 
        <div class="row"> 
         <table class="order"> 
          <thead> 
           <tr class="header"> 
            <td>#</td> 
            <td>姓名</td> 
            <td>账号</td> 
            <td>操作</td> 
           </tr>
           {if condition="$member"}
           {volist name="member" id="vo"}
            <tr class="project">
            <td>{$vo.id}</td>
            <td style="text-align:center">{$vo.name}</td>
            <td style="text-align:center">{$vo.username}</td>
            <td><a onclick="chose({$id},{$vo.id})" style="cursor:pointer">选择</a></td>
            </tr>
           {/volist}
           {else /}
           <tbody id="playerList"> 
           <tr class="project"> 
            <td colspan="4">暂无数据</td> 
           </tr> 
          </tbody>
           {/if}
          </thead>
          <tfoot> 
           <tr class="footer"> 
            <td colspan="4">
             <div id="pagerDiv" style="float:right" class="page_ctrl">
             {$member->render()}
             </div>
            </td> 
           </tr> 
          </tfoot> 
         </table> 
        </div> 
       </div> 
      </div> 
     </div> 
    </div> 
   </div>
  </div>
<script src="/resource/libs/jquery/jquery.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script type="text/javascript">
  var id = "{$id}";
  function btnSearchDiv(){
    var name = $("input[name=name]").val();
    var username = $("input[name=username]").val();
    window.location.href="/index/index/sendOrder?id="+id+'&name='+name+'&username='+username;
  }
  function chose(id,mid){
    $.post('/index/index/choseMember',{id:id,mid:mid},function(res){
      layer.msg(res.msg);
      if(res.code == 1){
        window.setTimeout(function(){
          window.parent.location.reload();
        },1000);
      }
    });
  }
</script>
 </body>
</html>